package com.david.func_test.viewpager

import android.graphics.Color
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import com.david.func_test.R

class NewFragment : Fragment() {
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        val view = inflater.inflate(R.layout.fragment_viewpager, container, false)
        view.findViewById<TextView>(R.id.title).text = "new fragmentnew fragmentnew fragmentnew fragment"
        view.setBackgroundColor(Color.BLUE)
//        view.findViewById<ImageView>(R.id.image).setImageResource(R.mipmap.img_list)
        return view
    }
}